package com.jmb.api.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 
 * @TableName api_case_suite_processor
 */
@TableName(value ="api_case_suite_processor")
@Data
public class ApiCaseSuiteProcessor extends BaseEntity {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 测试套件编号
     */
    @NotNull(message = "测试套件编号不能为空")
    @TableField(value = "suite_id")
    private Integer suiteId;

    /**
     * 0前置处理器1后置处理器
     */
    @NotNull(message = "处理器类型不能为空")
    @Size(max = 1,message = "处理器类型参数错误")
    @TableField(value = "processor_type")
    private Integer processorType;

    /**
     * 0执行依赖1公共头2公共params3公共data
     */
    @NotNull(message = "处理器类型不能为空")
    @Size(max = 3,message = "处理器类型参数错误")
    @TableField(value = "type")
    private Integer type;

    /**
     * 描述
     */
    @NotBlank(message = "处理器描述不能为空")
    @TableField(value = "description")
    private String description;

    /**
     * 值
     */
    @NotBlank(message = "处理器值不能为空")
    @TableField(value = "value")
    private String value;

}